#!/bin/bash

# 定义日志文件路径
LOG_FILE="grab_image_log.txt"

# 运行 GrabImage.py 并将输出重定向到日志文件
echo "Starting GrabImage.py at $(date)" >> $LOG_FILE
python3 GrabImage.py >> $LOG_FILE 2>&1

# 运行结束时记录时间
echo "Finished GrabImage.py at $(date)" >> $LOG_FILE
